<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrderRefundTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('order_refund', function(Blueprint $table)
        {
            $table->increments('id');
            $table->string('order_num') ->defatlt('')->comment('订单号');
            $table->integer('user_id')  ->defatlt(0)->comment('用户id');
            $table->integer('type')     ->defatlt(0)->comment('1仅退款，2退货退款，3换货');
            $table->string('desc')      ->default('')->comment('描述');
            $table->string('express_num')->default('')->comment('快递单号');
            $table->string('express_company')->default('')->comment('快递公司');
            $table->integer('status')    ->defatlt(0) ->comment('进度:0未处理，1已同意申请，2已拒绝申请，3处理完成');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
